/**
 * 在生产环境 代理是无法生效的，所以这里没有生产环境的配置
 * The agent cannot take effect in the production environment
 * so there is no configuration of the production environment
 * For details, please see
 * https://pro.ant.design/docs/deploy
 */

 let server_url = "http://192.168.3.137";
// let server_url = "http://192.168.3.172";


export default {
  dev: {
    '/file-server/api/v1/files': {
      target: server_url,
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
      secure: false,
    },
    '/iqi/api/v1': {
      target: server_url,
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
      secure: false,
    },
    '/apharbor/api/v1/images': {
      target: server_url,
      changeOrigin: true,
      pathRewrite: {
        // '/apharbor/': '/',
      },
      secure: false,
    },
    '/apharbor/api/v1/harbor': {
      target: server_url,
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
      secure: false,
    },
    
    '/api/v1/users/': {
      target: "http://192.168.2.174:444",
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
      secure: false,
    },
    '/iam/api/v1/': {
      target: server_url,
      changeOrigin: true,
      pathRewrite: {
        // '/iam/': '',
      },
      secure: false,
    },
    
  },
  test: {
    '/api/': {
      target: 'https://preview.pro.ant.design',
      changeOrigin: true,
      pathRewrite: { '^': '' },
    },
  },
  pre: {
    '/api/': {
      target: 'your pre url',
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
    },
  },
};
